<template>
  <button @click="openChat">OpenChat</button>
</template>
<script>
  export default {
    methods: {
      openChat() {
		const userID = 10006
        // 1v1 chat: conversationID = `C2C${userID}`
        // group chat: conversationID = `GROUP${groupID}`
        const conversationID = `C2C${userID}`;
        uni.navigateTo({
          url: `/TUIKit/components/TUIChat/index?conversationID=${conversationID}`
        });
      }
    }
  }
</script>